package server;

import java.util.LinkedList;

public class ParsedTweetStack {

	private LinkedList<ParsedTweet> stack;

	public ParsedTweetStack() {
		this.stack = new LinkedList<ParsedTweet>();
	}

	public synchronized ParsedTweet pop() {
		return this.stack.pop();
	}

	public synchronized void push(ParsedTweet t) {
		this.stack.add(t);
		notify();
	}

	public synchronized boolean isEmpty() {
		return this.stack.isEmpty();
	}

}
